//
//  BookAddManager.m
//  JPWords
//
//  Created by 梁淑婷 on 2024/6/23.
//

#import "BookAddManager.h"

@implementation BookAddManager

- (NSString *)methodName{
    return @"/system/user/book/app/add";
}

- (JPAPIManagerRequestType)requestType{
    return JPAPIManagerRequestTypePOST;
}

- (NSDictionary *)paramsForApi:(JPAPIBaseManager *)manager{
    NSMutableDictionary *dict = @{}.mutableCopy;
    NSString *userId = [[NSUserDefaults standardUserDefaults]objectForKey:@"userId"];
    dict[@"userId"] = userId;
    dict[@"bookIds"] = self.bookIds;
    return dict;
}

@end
